﻿@model IEnumerable<Vms.Web.Models.LIB_IMG>

@{
    ViewBag.Title = "SearchImgs";
}

<h2>SearchImgs</h2>

@using (Html.BeginForm()){    
         <p> Title: @Html.TextBox("SearchString")
         <input type="submit" value="Filter" /></p> 
        }
<table class="table table-bordered table-striped">
    <tr>
        <th>
        </th>
        <th>
            Name
        </th>
        <th>
            Width
        </th>
        <th>
            Heigh
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @{string img = "/Areas/Lib/Lib_Data/Imgs/"+ @item.ImgFileName;}
                <img src="@img" alt="@item.Name" title="@item.Name" />
            </td>
            <td>
                @item.Name
            </td>
            <td>
                @item.Width
            </td>
            <td>
                @item.Heigh
            </td>
            <td>
                @Html.ActionLink("Delete", "Delete", new { id = item.Id })
            </td>
        </tr>
    }
</table>
<div>
    @Html.ActionLink("Back to list", "Index")
</div>